package com.wzy.mapper;

import com.wzy.entity.Blog;
import com.wzy.entity.Video;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzy.entity.Violence;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wzy
 * @since 2021-02-09
 */
public interface VideoMapper extends BaseMapper<Video> {


    public boolean inserts(Video video);

    public boolean delete(Long videoId);

    public boolean update(Video video);

    public Video selectById(Long videoId);

    /**
     * 查看推荐列表
     * @param skip
     * @param take
     * @return
     */
    public List<Video> selectbytime(@Param("skip") Integer skip, @Param("take") Integer take);

    /**
     * 查找推荐记录数
     * @return
     */
    public int size();
}
